import request from '@/utils/request';

export interface LoginParamsType {
  userName: string;
  password: string;
  mobile: string;
  captcha: string;
}

export async function fakeAccountLogin(params: LoginParamsType) {
  return request.post('/api/admin/login', {
    data: params
  });
}

export async function fakeAccountUserInfo() {
  return request('/api/admin/userInfo');
}